package cn.hznc.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 工具管理异常类
 *
 * @author xiahuanyu
 * @date 2023/3/6
 */
@Getter
@Setter
public class ToolManageException extends Exception {

    private String code;
    private String msg;

    private Exception exception;

    public ToolManageException(String code, String msg, Exception exception) {
        this.code = code;
        this.msg = msg;
        this.exception = exception;
    }

    public ToolManageException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
